import http from "@/util/http";

// 基础属性
export const base_attr_info = (params: any) =>
  http.request({
    url: `/v1/create_helper/base_attr_info/`,
    method: "get",
    data: params,
  });

//分类属性
// http://127.0.0.1:8001/v1/create_helper/category_attr_info/?tree_code=CATE2509050111
export const category_attr_info = (params: any) =>
  http.request({
    url: `/v1/create_helper/category_attr_info/?tree_code=${params.tree_code}`,
    method: "get",
    data: params,
  });

//规则文件信息
// http://127.0.0.1:8001/v1/create_helper/rule_files/?tree_code=CATE0000001
export const rule_files = (params: any) =>
  http.request({
    url: `/v1/create_helper/rule_files/?tree_code=${params.tree_code}`,
    method: "get",
    data: params,
  });